package com.sourny.feign.server.service;

import com.sourny.feign.server.service.impl.HelloServiceFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author sourny.yang
 * @date 2018/3/31 13:12
 */
@FeignClient(name = "SERVICE-A", fallback = HelloServiceFallback.class)
public interface HelloService {

    @RequestMapping("/hello")
    String sayHello();

}
